A function that centers and normalizes a vector.