What direction did the North carolina railroad extend