adding kth order from 2 sorted arrays