Changed genesequence handling to use pointers. This should cut down memcpy and malloc calls.