Update vector.h

 - Move infix arithmetic operators to friend functions
 - Add copy constructors
 - Fix minor issues that came up from the tests