small changes in HOG.cpp