add median in two sorted array