Finding whether binary tree is balanced or not