Started from scratch
Added tree algorithm using a global queue
Added Pipeline broadcast algorithm
Simplified code
Changed comment in sim_broadcast
Refactored methods