Move createsamples application from OpenCV ver 2.4

This is code related for *createsamples* application only.