This is the implementation of the scheduling algorithms and the library for C.