add functions to compress bed and wig files into binary formats