ohk! Alright I will correct this. 
Please have a look at other parts of code as well

btw, why is travis ci build failing? I tried to debug using logs but found that tests are failing at places completely unrelated to KMeans.