source: added memory buffer class. Tested matrix stack; it works.