On a dynamic wavelength assignment algorithm for wavelength-routed all optical networks