Remove use of memcpy, convert interpolated_noise manually