filter_same_cycle function

Filter the instances in a data.table with different ids in each row