Added const qualifier.

Added the const qualifier to some of the functions for the vector datastructure.