cleaned up Pythagorean Triple code