Added dynamic, need to debug divide and conquer