median of 2 arrays