Created a noise.h

Moved the noise functions into their own math class and cleaned up the
code a bit as well