Homework 3: one more attempt

3_6 re-implemented with a single thread. Debug code removed.