The problem is to determine the most frequently occuring value, called the mode, of a sorted array.
The elegant algorithm used to compute the mode was invented by Griffits.
Unit: internal function
Global variables: the input sorted array A. of arbitrary elements
Parameter: a positive integers N - number of elements in A.
Returns: Couple of values Mode and Frequence of mode separated by blanks.
displays 2 2
Gehani N., Ada - An Advanced Introduction
Prentice-Hall, Inc. Englewood Cliffs, New Jersey 1983