Parameterize cube generator with side length
Add comments to cube generator
Separate PCL processing into a separate thread and synchronize all threads with condition variables