Permute is a simple program to read lines from standard input and generate all possible permutations of those lines.