Add some type definition

HoG has hierarchical structure.