Example code for managing a red-black interval tree