Can you provide a minimal implementation that reads an input file and writes the suffix array to a file?