linalg: define independent and dependent sets