A thread pipeline is a sequence of threads linked together with a chain of buffers. Each thread in the pipeline reads from the buffer preceding it in the chain and may write to the buffer following it in the chain.
Your task is to construct a pipeline that will sort a list of integer values. The pipe will consist of 10 threads only. Each thread will sort its own list of values.