Fixed the vertex/tangent population bug. Now the program randomly exits :(