A volume clearing algorithm for Muon Tomography