Fix balancing issue chaimleib/intervaltree#17

According to the Apache License, this copyright notice has to remain intact (same as in the MIT license). However, I am more than happy to credit konstantint for his contributions.