Finds the maximal sequence of equal elements in an array.