simplify the notation of cross product

by adding _det2 as a helper function