Building the tree works, but there is something terribly wrong with deletion from the tree