finally embrace cake pattern for Matrix (for now)
distance code has migrated to MatrixDistance