Add JavaDocs for toposorts