Quick C++ version of the reference implementation of Perlin Noise