Added basic2d module

Module for basic 2d computation
Added file header
Some minor changes
Fixed stupid mistake when clamping acos
basic3d module and some fixes in basic2d

Added the basic3d module. Standard 3d maths but still reimplemented
evrywhere.
Some doc. fixes
Some minor fixes

Fixed som wrong spellings in cooments, reordering
some arguments to be mor uniform, and fixed a small bug in
isUniform for 3d matrix.
Forgot publicity star on symbol
Merge pull request #548 from ventor3000/master

Added basic2d module