Collision detection library for C++