Added code to generate pythagorean triples