Added split with indices

Signed-off-by: Neel <neel250294@gmail.com>