function flatten(arr){
  return arr.reduce(function(a, b){
    return a.concat(b);
  });
}
A class to describe a 4x4 matrix
for model and view matrix manipulation in the p5js webgl renderer.
@class p5.Matrix
@constructor
@param {Array} [mat4] array literal of our 4x4 matrix