Efficient shape matching using vector extrapolation