working GJK