Vector calculations library