Added weighting algorithm

Weights CPI based on time required to accrue needed bits.