Fanofactor

This pull request adds a Fano factor function to the statistics module and corresponding tests.