A memorizing and generalizing framework for lifelong person re-identification