An algorithm to identifying the root cause of a fault