Started additive approximation of costs

Started writing the additive approximation of costs. Added weight
function that gives a kind of a distance of co-occurrence bin from the
center. Also made a tiny change to co-occurrence function.