Created matlab based versions of Conjugate gradient