finished advance_photon_paths cpu implementation