ordered set time complexity