Efficient algorithm for the forest fire model.