2D shapes: classify in a hierarchy based on properties