Changes for linear.
Merge pull request #4 from diagrams/linear

Migrate from `vector-space` package to `linear`

Make types more polymorphic.