The graphic interface has been made and tested using Safari 6.2.8. If you have cross-browser compatibility issues, try the text-based version (it works even in Internet Explorer 6). If you have an idea for a better algorithm, I would recommend testing that algorithm against this database stored in JSON format. I validated my algorithm using this JavaScript program, and I got those results. For comparison, when testing a completely randomized algorithm against that same database, I got these results.