Added some simple math functions such as mean, mode, range, gcd

Update of javadoc