added functionality: re-id of a set of query images