Create SetLib.py

A [very rough] set library, primarily used for node chaining based on distance