added hashValue() to Segment to be consistent with Slice