finish alg_hw06