added median computation of two sorted arrays