Utilities to work with vectors.