Improvement to MATLAB modules. Replaced some memcpys with memmoves.
Improved single-threaded performance.