The CPP codes for my VaR project