finish most problems of chapter 7
finish chapter 8: algorithm design although there still are some
problems haven't been solved.