reformatting cpu version to revised matfree method
code buggy but set up for new quadratic tets.