Method of and apparatus for generating a signature representative of the content of an array of data