Implement scheduler

This still has the incorrect output for TSP, but is working in terms of scheduler, and utalizing factory!