Mutating qsorts into intrasorts. Branch finished.

It causes stackoverflow, so I modificate it.