Search for 1 millionth lexicographic permutation from list of 0 to 9 integers