Added some basic clustering features. Still need to fix the k-means clustering algorithm, because as of now it assigns clusters randomly and does not iterate.