migrate to linear
Merge pull request #24 from diagrams/linear

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