Added a bunch of math-functions to math.h. Added some new functionality to nx_vector2.