Complete and woring genetic algorithm which also calculates dC/dX