UNTESTED: code for binary GA added in