Canadian National Railway Co topped analysts' estimates for quarterly profit on Tuesday, as the railroad company transported higher volumes of petroleum crude and Canadian grain.