prereq dependency ordering works for first test case; need to update to handle only selected courses