add diff(f::Function,k::int=1) method