Goal: I am trying to insert the output of a data structure as input of the next data structure with a runtime O(n log n). (Explicitely: Given a vector and two unord