Adding simple math algorithms