add some common headers
add function to say if a binary tree is balanced