Constructing the Optimal Portfolio with MATLAB and Smart Beta