Add the implementation of KVS
Add tests and fixed some bugs
Merge pull request #2 from fkmhrk/implement

Implement base class