Added method to find the centers of the leaf nodes with points.