almost rewriting dichosolver for using hashes
Merge branch 'master' of https://github.com/moskvo/dicho-method