make_dag - substituted queue with two stacks.
peterson - renamed class peterson to spin2.