refactored scheduling algorithms into Algorithms.cpp