KMeans with config parameter wSize and changed init method