fix algorithm of divide conquer