Switzerland moved into the last 16 of the World Cup with a controlled 2-0 win against Algeria on Thursday.