A Block-Based Union-Find Algorithm to Label Connected Components on GPUs