Project Euler #86: Cuboid route