An Efficient Algorithm For Removal Of Inactive Blocks In Reservoir Simulation