Implemented clustering
Added dataset construction from sample data
Fixed an issue with clustering