stencil3d ldb example: moved barrier from main to the array