fixed matrix so its one 16 float array instead of a 4x4 2d array