implements cross product method.