Add average function
Merge pull request #65 from lucasmichot/feature/average

Add average function