word break with a dictionary tree