Improved binary clustering to involve K-means algorithm. Also added a function to create the training feature matrix from the training_data directory.