Implementation of Perlin Noise Algorithm.