ordered set time complexity python