code: function flatten (data) {
    var result = []
    var dimension = data[0].length
    var ptr = 0
    for (var i = 0; i < data.length; ++i) {
      var v = data[i]
      for (var j = 0; j < dimension; ++j) {
        result[ptr++] = v[j]
      }
    }
    return result
  }
docs: /* global alert