ordered set search time complexity