Added PerlinNoise class, other misc stuff.