medium of two sorted same length array