isMajority in sorted array