Issue #9: Wrote pass tests for genetic algorithm