added resize function to vec3d and added write_debug_info function to Diffusion3D