Solution of railroad problems by the slide rule