Update perm_main.cu

Rather than use multiple __syncthreads() for last warp, instead declared the __shared__ memory as volatile which works..