add_barrier_mesh function

Transform a mesh object into a mesh with correlation barriers