Update hoffmanencoding.cpp

Added <climits> so that INT_MAX works. Fixed some vector typo's from "node" to "nodes". Added some commenting to easily look at code and know which section does what.