Quicksort with some problems

sync commit only