Converted quicksort to nodejs package