double minValue(Matrix matrix) { List<int> location = minIndex(matrix); return matrix.getAt(location[0], location[1]); }