Adding sort algorithms written in C