SYNC BUG FOUND : __syncthreads() only syncs threads in a block, it is not a global sync routine