Just over a year ago I wrote a little Python program for comparing GPS tracks and wrote about it on my website. It uses the Needleman-Wunsch alignment algorithm, more commonly used to align DNA and protein sequences, to align GPS points.
You can read more about it here or checkout the code on GitHub.