Create descriptor.cpp

functions required to compute the HOG descriptor are included here.