Improve hog

This could be a starting point for adding bilinear interpolation.
I also used centred filter to compute the gradients.