add a more general purpose function

findKthSmallestRecurrsive2 returns array number and index instead of number directly. Also, it can handle sorted array with duplicated elements.