Adding project euler #24: lexicographical permutations