Implemented GapBuffer.

Added unit test for GapBuffer using Google Test.