Implementation needed with time complexity O(n log n)
Hvernig gengur?
Not added to the library yet but implemented here.