update median sorted arrays.