added optimized memcpy and memset for cortex