Matrix package:linear

Simple matrix operation for low-dimensional primitives.