A genetic algorithm for the non-parametric inversion of strong lensing systems