Calculating fitness, inital states of chromosomes and populations