Implemented DTWAlgorithm and Gesture class.