implemented vector operator functionality and tests