PHP AVL binary search tree