C implementation of different process scheduling algorithms