fastest copying segment of one array to another