get_dup_run_inds function

Get indices of starts and ends of runs of duplicate values