2D connections solver

Hi,

You can find a few examples here