Update README.md

It was added a brief description of the logic used.