added test script and a kmeans mat