Reduction function fix, searching, and testing

Reduction function now outputs a 6 letter password using only a-z.
Searching now returns the word once it finds it (very inaccurate).
Added automated testing.