added check_intersect
updated CMakeLists.txt