Fixed bufferallocator example:

The example does not compile due to wrong namespacing, and has an uninitialized data member in the constructor.  This pull request addresses both defects.