An academic implementation of a data compression algorithm using C++ STL