Ported from Stefan Gustavson's java implementation of Perling noise. Read Stefan's excellent paper for details on how this code works. http://staffwww.itn.liu.se/~stegu/simplexnoise/simplexnoise.pdf
If you're on a Mac, clone this repo, open your terminal and navigate to the clone. Type the following.
./SimplexNoise.out
