How the nation’s rail systems are using technology and big data to improve safety and efficiency.