variance of a portfolio with n assets

implement stack using queue c++