Improve moments code and use typed memoryviews
Make moments functions public, rename, add tests
Sort functions in alphabetical order
Add test cases for moments functions
Fix PEP8 issues and typos
Merge pull request #694 from ahojnnes/moments

Refactor moments functions.