Add gentree.py which generates the possible results dataset in json format.