Added a buffer class

A simple buffer class was added...