Pre-Indexing for Fast Partial Shape Matching of Vertebrae Images