Finding the boundary