core: more or less rewritten memcpy(), especially improving small and very large copies. Uses SSE with save/restore for copies > 512 bytes.