Updated math library to include vector operations