[WIP] Move loop algorithms to new Algorithm\Loop

* [x] Move Set::hasLoop() to new Algorithm\Loop::hasLoop()
* [x] Move Vertex::hasLoop() to Algorithm\Loop::hasLoopVertex()
* [x] 100% code coverage
* [ ] Documentation / changelog

Refs #27.