Cyclic barrier

Implemented pure Ruby Cyclic Barrier