Flexible Syntactic Matching of Curves and Its Application to Automatic Hierarchical Classification of Silhouettes | Synapse