Added median sort container