added median of sorted array plus two new elements