2 sorting algorithm implementations done in C