Mask r←x⋷y

r is a natural array with the same shape as y; each occurence of x in y is marked with an unique number in all positions; overlapping matches are ignored. Supports the tolerance extra argument for the comparisons.