Statistics

Implemented some statistics functions. Need to add some tests
Tests - Statistics

Made some more tests of statistics and copied DigiMatch into the
repository
Continued