added elemIndices and findIndices