Implemented the store.

WIP, these things are missing:

- [x] in-line jsdocs
- [x] README.md with usage section, results of benchmarks, etc. 

/cc @sam-github Please review the code.