Divide and conquer algorithm applied in finding a peak in an array. first from middle to the left later right side.