minor fix
forgot to implement proper destructors
implemented LZ78
generalized code