Project Euler #126: Cuboid layers