Nelson Pereira and Miguel Pinheiro win in Madeira