An attempt to build a 3D physics engine in C