Slab decomposition data structure for vertical ray queries