Incremental learning of deep neural networks mitigating catastrophic forgetting