finish qsort and msort but need to debug for right result.