Better explain the used algorithm

@sindresorhus, you may want to correct the phrasing, my English is not very good :)