Integer factorization visualization with OpenGL/GLUT