Added hog() cython function from pyvision