Update homework1.c

Fixxed student averages, added a clause where if students are in 4 classes cannot be added to another one