Initial commit of sample statistics functions to the stat package