Basic algebra.

Added additoin, subtraction and scalar multiplication.