Fix memory leaks and Add ability to mutate chromosome