Add Algorithmic Budget Rules

Added a number of algorithmic budget rules for calculating budget
components. Also updated the supporting package with functions used in the
rules.