Eddy Memory Mode of Multidecadal Variability in Residual-Mean Ocean Circulations with Application to the Beaufort Gyre