https://zonebahama.blogspot.com/2018/05/solving-resistor-networks-javascript.html