added memcpy to functions.s