started implementing divide and conquer