Cleaning up code more
Added AVL rebalancing algorithm