Fixed mid point error for Median function.