A better way to combine complexities: do not use their mathematical result (what the heck should a runtime of 1539 (without unit) mean, and how should I combine it with a complexity of 100 O(n)?), but combine their positions in the treeset