Library for speedy data storage, retrieval, and compression