Added some more maths related classes, mostly untested.