The first file is just a silly way to demonstrate the basic usage of shell scripting (bash) in UNIX/Linux env.
The second one, works under cygwin and it set some parameters for raytracer, and then run it.


The speed increases dramatically when the depth increases, the speedup is shown below for depth=4, 8, 12, 16, 20

with depth 20 or more, there is no considerable speedup for KDTree. Since, the major times is due to loading obj files and build the tree.