Library for Monte Carlo simulation of moving of photons in long scintillator