Added function nofail_swap to more_algorithms.h.