lin_solve function isolated for more compilation performance
simulation_base.c removed. replaced by lin_solve_base.c