Add find index positions method.