var Matrix = function(rowLength) {
  this.matrix = new Array;
  if(rowLength) {
    for(var i = 0; i < rowLength; i++) {
      this.matrix.push(new Array);
    }
  }
}

var Matrix = function(rowLength) {
  if(rowLength) {
    this.matrix = new Array;
    for(var i = 0; i < rowLength; i++) {
      this.matrix.push(new Array);
    }
  }
  else {
    this.matrix = new Array(new Array);
  }
}
Matrix.prototype.find = function(value) {
  var coordinates;

  this.matrix.forEach(function(row, rIndex) {
    row.forEach(function(cell, cIndex) {
      if(cell === value) {
        coordinates = {
          x: cIndex,
          y: rIndex
        }
      }
    });
  });

  return coordinates;
};

Add find function for Matrix
Add find function for Matrix
