Template for GA algorithm. Implemented pseudo code from AI book
(Russell/Norvig).