Package duplicates contains go functions for returning duplicate indices and removing duplicate indices in slices.