divide and conquer algorithm geeksforgeeks