Added new sampling tool using indices; no memory usage