Removed redundent code from textures.cpp
Fix: BSP leaves splitting below desired threshold.
Fixed freeing node memory.
Added test data for checking data assignment within the nodes..