Statistics for Fast 3D Thinning of Medical Image Data based on Local Neighborhood Lookups