port to linear
Merge pull request #11 from diagrams/linear

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