Scalar and Vector triple product