Second try at a translation of the third Go version. It seems to work correctly (comments welcome), but it seems slower: http://codepad.org/y1LnjLl0 Bye, bearophile