The iconic Flying Scotsman will return to the North Yorkshire Moors Railway this autumn.