Implement recursivediff()