Geometry Driven Probabilistic Models for Shape Matching, Classification and Retrieval