// MAXIMUM ELEMENT
// Returns the value, row index and column index of the maximum element
public double[] maximumElement(){
double[] ret = new double[3];
double[] holdD = new double[this.numberOfRows];
ArrayMaths am = null;
int[] holdI = new int [this.numberOfRows];
for(int i=0; i<this.numberOfRows; i++){
am = new ArrayMaths(this.matrix[i]);
holdD[i] = am.maximum();
holdI[i] = am.maximumIndex();
}
am = new ArrayMaths(holdD);
ret[0] = am.maximum();
int maxI = am.maximumIndex();
ret[1] = (double)maxI;
ret[2] = (double)holdI[maxI];
return ret;
}