Exercise 4.37 - Ben Bitdiddle's faster (?) algorithm for Pythagorean triples