Fixed memory leak, added handling of non-existant word ladders

- Changed scope of usedWords set
- Results in massive performance improvements and prevention of memory
leak
- Algorithm is now very fast, and correctly handles words that don't
have a valid solution ladder