It works! Cleaned up the code a bit. Fixed removal of node with children on both sides.