Updated vector class for a little more efficiency, along with fixing two
related bugs