removed smw helper functions from project_ric_utils as they are in linsolve_utils