Gait Recognition Based on Fast Shape Matching