Using Shannons Expansion To Analyze Circuits