minibatch kmeans added

This is my initial implementation. I have created separate cpp files for each type of training. Please have a look and suggest improvements.