Improved KD Tree generator to use SAH, (takes a bit more memory though),
separated math utility functions (lerp, clamp, etc) into separate class.