finish alg_hw09 finally!!!!