mergesort is already defined in /usr/include/stdlib.h:270 on some platforms. delay is deprecated in R 2.1.0.