Some vector utils and unit tests.