fix msd sort

Signed-off-by: Luo Chunbo <luochunbo@gmail.com>
add 3way_quicksort

Signed-off-by: Luo Chunbo <luochunbo@gmail.com>