Added Dictionary.java which is responsible for word recording and retrieving, used in the word mode functionality. Added several methods in the Trainer.java for word mode functionality