update the barrier and createSpanning function into the spanning tree library span.bb and span.bbh