replaced my hacky vmath with a proper library by a nice finnish person