Initial code for ex7
Implemented K-Means