Add divide & conquer optimization