Allocate and free memory for all_vars
Initial commit for vic_restore()