moved structure generators into own functions

and moved terrain generation helper functions into new noise.cpp