added memory clean up for dynamic allocation of flood map arrays