Use typedef'd shared_ptr in TopSorter