This algorithm takes a list of text file names, reads the files, and sorts the documents into a binary tree using keywords.