insertion, selection, sort in C