Create train.cpp

Reads images from the given directory, computes HOG descriptors for each of them and trains a linear-SVM from them.  The parameters are passed from the command-line.