Added getter and setter to chromosome.