public override bool Equals(object obj) { Bucket b2 = (Bucket)obj; return(b2.cap == this.cap && b2.val == this.val); }