Gets the mean or average of all the values
adjustment- calculates the mean by dividing the sum of all values by (n-1) instead of n,
which is the number of elements in the matrix
Return the real parts of the eigenvalues
todo a way to test eigen values is -> sum of eigenvalues = getTrace of the matrix and product of eigenvalues = detrminant of the matrix