Imporve Sort Algorithm