Project Euler #62: Cubic permutations