init2DArray = (height, width, fill) => {
  let array = [];
  // Itereate through rows
  for (let r = 0; r < height; r++) {
    let row = new Array(width).fill(fill);
    array.push(row);
  }
  return array;
}
Create a 2D array (matrix) with given size and default value.

@param {int} height Height (number of rows) for the matrix
@param {int} width Width (number of columns) for the matrix
@param {int} fill Default value to fill this matrix