N-queens and 3-D maximization GA code