kth smallest in union of sorted arrays done