An Adaptive Unconstrained Routing Algorithm in All-optical Optical Networks