Adding initial statistics functions and RUnit tests