folder for matrix alg