Simple Genetic Algorithm to determine the angles at which several dipoles in a straight line have lowest energy.