Calculates the vector triple product of four vectors.