Computer algorithms are bypassing a costly national rail safety measure mandated by Parliament, the Transportation Safety Board disclosed yesterday. Crash investigators cited three incidents including near misses in which key information was lost: “In all three of these occurrences the trains were operating near the border with the United States.”