Introduced memory copy macros and optimized the performance of memcpy and memmove & lots of misc improvements