Added unit-tests for kmeans algorithm