first problem: sorting flat files on disk