finished topology sorting