update solution for Word Ladder