Added findWords function to dictionary and test class