JUST MERGE this
Added 2 Tensor operations and changed the GLS erms to match with 3D. Also made an edit to the d functional with the new tensor ops
Added 2 Tensor operations and changed the GLS erms to match with 3D. Also made an edit to the d functional with the new tensor ops