compiles. fixed bug in cross product