divide and conquer method is used in