Create Equilibrium index of an array