Collection of math algorithms.