C++ run length encoded array library