currents function

Calculates currents in an arbitrary resistor array