extract generic functionality out of genetic.h to optimise.h