How one of the world’s largest railways is using technology to reinvent itself