Added partial solution for horizontal/vertical chains. Be aware of infinite loop.
Merge pull request #1 from mikeroup/master

pull request