MaxHeap: add pop method to delete max, merge deleteIndex method into pop (with index)
reimplement cleanTimeRangeList and intersectionOfTwoIntervalList functions with a better algorithm which also solves start==end events