Revised the evaluation scheme of the algorithm.