A Structured Program to Generate all Topological Sorting Arrangements