R notes and implementation/description of in-place quicksort