Find median in O(1)