Refactored HOG code; added bindings for HOG features (not all old functions and classes are bound, though)