sorts words using pipes and multiple processes