void count_sort(char *s1, char *s2)
{
int index;
int pos;
int help[26] = {0};
int i;
for(i = 0; i < strlen(s1); i++){
index = s1[i] - 'a';
help[index]++;
}
for(i = 1; i < 26; i++)
help[i] += help[i-1];
for(i = strlen(s1)-1; i > -1; i--){
index = s1[i] - 'a';
pos = help[index] -1;
s2[pos] = s1[i];
help[index]--;
}
s2[strlen(s1)] = '\0';
}