implemented cross product func + tests