A large-particle Monte Carlo code for simulating non-linear high-energy processes near compact objects