Project Euler #139: Pythagorean tiles