Add weighted average and the related cache
Merge pull request #88 from halilim/cache-weighted-average

Add weighted average and the related cache