A simple python programme to find a words chain into a dictionary