GPS system could have prevented deadly train crash