added absolute value difference
Merge pull request #2 from fnc314/func_diff

added absolute value difference