HC-Search Learning and Inference Framework for Computer Vision