Fix prepareInputData in KMeansHybridBSP