Neuron Clustering For Mitigating Catastrophic Forgetting In Supervised And Reinforcement Learning