word permutation enumerator. took me a while to come up with a numeric method rather than brute force