added C implementation of selection sort