modify the algorithm of 2013-2-26 which in beauty_of_algorithm