Homework-6, problem 1 improved.

SCAM, LOOK algorithm is added.