add sum search alg and its test. It's the answer for Q2.3-7.