BitString<Char> encode_data_and_push_into_bit_string()const { BitString<Char> encoded; for (auto ch : data) encoded.push_back_bits(code_dictionary.at(ch)); return encoded; }