Common function that does averaging

Issue #7 resolved
Vasyl Zuzyak repo owner created an issue

Would be nice to have common function that does averaging with help of built-in functions. It should not care about sign of numbers