Add scalarTripleProduct method