Refactored some of the noise methods

Perlin noise, cosine interpolation, averaged smooth noise, etc.