Improved algorithm for updating facets