Parallel implementation of similar neighbors