word_ladder needs optimization