Markowitz’ Critical Line Algorithm for Matlab and Python