Added average filter to math module

updated readme and added tests as well.