Basic vector operations implemented.