Simple implementation of C++ library