Compress

we could probably also import numpy.linalg to shorten some of the linalg function used below.  Not super important, but nice.