Update hoffmanencoding.cpp

Changed char frequency array to correctly count unique chars used, including space.