Altered KmeansPlusPlus code