Memory leaks fixed. Cube and Line inherit from BoxShape. Point-to-line rigorous collision detection is started but needs debugging.