added the implementation for finding the kth smallest element in two sorted array