basic functionality for compressed data representation
added equals() and hashCode() method
implemented hash function