Restructured train_boundary_classifier script.

Now whenever size of training set is changed, all the intermediate
calculations (.mat) are stored in seperate directory