divide and conquer method in ada