Improved FindChains and tested it with data presets from example of the task itself.