Deleted duplicates
Updated sorting
AVL tree