lib: Improve the performance of memcpy and memmove of the general version

The performance of memcpy and memmove of the general version is
very inefficient, this patch improves them.

Lib/memcpy was implemented in Alien Ver 3.0, but not Utilized until this commit