add locateat, similar to Matlab's ismember