Added HOG implementation