Implemented scheduling algorithms and Prim's algorithm.