Added support for repeated characters. My algorithm assumes no more than two repeated characters in all dictionary words. However, almost all words with more than two repeated characters are archaic or very seldomly used, so this shouldn't come up often in practice. The fix is fairly simple, but requires more complicated code.