Source code for the Median Document Organizer