C version of OpenSimplexNoise

source: https://gist.github.com/KdotJPG/b1270127455a94ac5d19
licensed under Public Domain