Added a "Vanilla" implementation using a set and a volatile reference to an array
Improve performance by using two loops.
Improve the formatting
Improve the formatting
Merge pull request #1 from peter-lawrey/master

Added a vanilla implementation and improved stability of results.