Small matrix stack using glm