Add Circular Buffer Threading

Add a sample for circular buffer multithreading. So that extra elements
can be used to store more values produced. This increases the efficiency
of sync multithreading.