Replica approach to mean-variance portfolio optimization. (22nd December 2016)