Added function for calculating average duplicity in traces

This function counts, for each ast-node, in how many unique traces the node appears.
This number is summed for all nodes and afterwards it is divided by the number of nodes that appear in at least one trace.