Interval tree implementation(C++) using RB tree as underlying datastructure