code for experiment with different algorithms (newton, iterative projected gradient, SDP, DML-eig)