Added a clear() function to mesh so that we can reuse already allocated memory. Just hoping this speeds things up slightly during mesh generation.
Deleting more code from chunk. I think the new code may look a bit uglier I don't know...