public override int GetHashCode() { return (list.Count * (this[0] + this[list.Count-1]).GetHashCode()); }