Some C# functions for 1D, 2D and 3D Perlin noise