Implemented helper function subtree_free() which does the heavy lifting
when freeing a bstree.