Add get median of a sorted cyclic list