pass genome vector as a pointer rather than by value