Refactor the mathematics package to math

Signed-off-by: Aleksi Sapon <QcTechs@gmail.com>