Applications of the Monte Carlo Method in Radiotherapy