fix WordLadder.cpp