functools.r removed; rfunctools.r added (similar; slight modifications and adds function from recursion-tools.r)