Solves the problem of the infinite grid of resistors