Implementation of Huffman and Lempel-Ziv data compress algorithms