Fast algorithm for calculating the radiological path in fan-beam CT image reconstruction