Add vectorized copy and addition
Fixed vectorized function bug