Minor fixes to the vector class
Trying to implement variance-adaptive sampling