Project Euler Problem 24 Lexicographic Permutations