new version of divide and conquer, no merge