code: function coordMatrixToCoordArray(coordMatrix) {
                  var coodinatesArray = new Array(coordMatrix.length * coordMatrix[0].length);
                  var k = 0;
                  for (var i = 0; i < coordMatrix[0].length; ++i) {
                      for (var j = 0; j < coordMatrix.length; ++j) {
                          coodinatesArray[k] = coordMatrix[j][i];
                          ++k;
                      }
                  }
  
                  return coodinatesArray;
              }
docs: Function that receives a coordinate matrix as follows:
  [[x1, x2, ..], [y1, y2, ..], [ .. ]]
  
  Returns an array of coordinates as follows:
  [x1, y1, .. , x2, y2, ..]
  
  @param coordMatrix
  @returns {Array}