Added a compute_trust method as specified by the ADD. This method is also compatible with a decision-array (of node identifiers rather than booleans)