building AVL tree on top of the Binary Tree