added structures and started alg

started implementing the scheduler
made all of the structures needed for scheduler