O(n) for a sorted list