PROGRAMMED FAULT-DETECTION ALGORITHM FOR COMBINATIONAL SWITCHING NETWORKS