Vector operations

Functions for working with vector data.