add maxDepth method in HuffmanTree class
fixes for compilation with clang