1. add processing of cycles
Merge branch 'master' of github.com:aakhmerov/paths-problem