Added some more math utilities