Fix balancing issue chaimleib/intervaltree#17

I'm sorry I let those two bugs through. I really did try very hard, and you did see all my debugging statements.  Ultimately, the important thing is to get it fixed, and I thank you a lot for the help!