increased performance on mat4, now with global mat4s to reduce malloc overhead (not pushing and popping just yet)