add example for diff with --numstat

add 'diff_print_numstat' function in examples/diff.c to support '--numstat'.