Pythagorean Triplets (problem 9)