Assignments of Coursera Algorithm 1