Code for CS106B WordLadder and NGram Assignments