In-memory key value store using STL and templates