implement the bst checkheight function that redcuces the time for
isBalanced
insert_sorted.py