iterator version of search module
word ladder search