ds: add parent tree and huffman operation