homework of week 4 "algorithms" at coursera