Added more methods to vectors to perform calculations on instances, and without allocating a new vector.