Magnus, Did you think of submitting this to the python snippets repository? http://www.hvision.nl/~ivnowa/snippets/ "Magnus L. Hetland" wrote: > > Explanation of the distance algorithm... > > (Got a request for this, and thought I might as well post it...) > > The algorithm: <snip>