Array Inversion divide & conquer method