Equilibrium index of an array