Interval tree implementation in Ruby with addition, subtraction and intersect querying