AVL Tree implementation in java