Add glClear() to load3dMatrix()
Create the Buffer class