Added flip to matrix buffer filling. Test cases use matrix uniform.
Patched distributable.