Add buffer, mutable_buffer, and UnitTest.

* Add gtest dependency,
* implements buffer and mutable_buffer,
* implements unit tests for buffer and mutable_buffer.