public override bool Contains(Obj obj1, Obj obj2, Obj obj3) { int[] firstAndCount = Algs.BinSearchRange(col1, 0, col1.Length, obj1); int first = firstAndCount[0]; int count = firstAndCount[1]; if (count == 0) { return(false); } firstAndCount = Algs.BinSearchRange(col2, first, count, obj2); first = firstAndCount[0]; count = firstAndCount[1]; if (count == 0) { return(false); } int idx = Algs.BinSearch(col3, first, count, obj3); return(idx != -1); }