Implemented initial factor graph and topological sort
Added a simple to_json implementation for the FactorGraph
Implemented JSON method for nodes in FactorGraph
Finding subclasses of FactorNode within a specified package.
removing unused imports
refactoring