adding some matrix/vector operations and tests for them