Code for the Genetic Algorithm devised for Durham University Mathematics Project III course