Added several geometry helper structure with a ray structure.
(Also fix a mkdir bug in Makefile)