added equals/hashCode in HashValue class