a simple qsort algorithm implementation(mit : introduction to algorithms)