added functions to calculate efficient and minimum variance portfolio weights