divide and conquer method in dsa