Interval tree can be parametrized by value type