median of two array