Greece are into the last 16 of the FIFA World Cup for the first time in their history after beating Ivory Coast 2-1.