replace straight copies with memcpy
improves bayesline run times by 4x for long segment lengths by copying arrays as full blocks of memory instead of element-by-element.
improves bayesline run times by 4x for long segment lengths by copying arrays as full blocks of memory instead of element-by-element.