Finished debugging k means.