Mathematical vector class with common operations

Not fully testeted or documented. Use at your own discretion.
Updated sphere class to use NVectors

Global typedefs are bad