#318: helper.py, define 'duplicate_list_index' method