Agent-based framework for person re-identification