divide and conquer method in algorithm