Solves simple DC circuits