Modal matching similarity search for shapes defined by a small number of points