skelton code of find median of two sorted array