Problems with tag O(n * mlogm)