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.
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.

weecology/mete-spatial,weecology/mete-spatial,weecology/mete-spatial,weecology/mete-spatial