restructured code, changed k-d trees to BSP trees, failed using OpenGL to render sample image