add solution for find median of two sorted arrays.
elimit tail recursion for median of sorted arrays.