Showing result algorithm is improved.