Implemented CapWeighted weighting scheme