Use Quick Sort Lomuto partition scheme(modified) to solve the find kth largest or smallest value in the array. A javascript solution