exercise 3.19 floyd-cycle