Add quad_prob calculation in c
Remove unneeded lines of code and fix error related to the computation of quad_prob().
Add c function calls to quad_prob(). Attempt to generalize the calcualtion of commonality so that it does not only apply in the HEAP case.
Recompile c code given recent edits.
Minor changes to comparison plots.