Resistor Network Simulator using arrays