quick sort and comparison count in sort process