rename linalg -> linsys and add struct linsys