Hierarchical Matching of Deformable Shapes