fixed updating of variance, misc additions to vector class