C# program for learning. This is the classic threaded producer/consumer program