Added hashCode() method for Statistics class