Initial 4D version

Copied the stage 6 path tracer for the basis of my 4D verison.