created search for word tree, produces seg fault on branching