Create Query_tree.py

The class definition for the tree structure