Complete the 'find kth smallest number in two sorted array'