Fix knth_n_quickselect random pivot range

from 0 to length -1
Fix auxiliary arrays length
 
Affected: knth_n_mom and knth_n_quickselect
Improve generator feedback
Fix knth_nk invalid read and aux array index bug
Fix knth_nk (again). Use check/mark functions
improve random_range readability