added functions for checking the height of a tree, as well as if it's balanced.