Pape Habib Gueye was at the double as Aberdeen overcame Motherwell 2-1 to maintain their 100 per cent record in the Scottish Premiership.