wrong stuff
working version of divide and conquer