added k-means, 3d peaks calculation