It is used to generate a basis that contains x. First get the perpendicular vector to x - the vector p - then do the cross product of p and x getting c. <x>, <p>, <c> form a basis.