Ensured setRight and setLeft also reset the new child's parent
Finished insertion adjustment and implemented rotation algorithms.