Adding sparsify functionality to GA.