Use 'depth' instead of 'level' in the node printing function to avoid confusion
Add a function to check whether a tree is a search tree