add quick sort inplace function, need bug fix