Simplify addMatVec code with if-else statement
rename LinearSpring::addMatVec parameter 'x' to 'vector'
Add LinearSpring unit test for addMatVec method