Updated to use boost pool allocator
Fixed member variable access.
removed template functions from cpp file