Elementary math utilities with a focus on random number generation, non-linear optimization, interpolation and solvers