Fixed bug in Matrix.equals
Test for k-means