add batch writes in cache.

In this PR, batch writes is added to the in memory cache as mentioned in #182
Yes. That will alleviate the problem for now. We should put a note on our main page stating that querying percentiles often with a non-memory storage backend might result in frequent writes to the backend.