corrected initialization for mode 2 and kmeans for bottom up