Added -O3 option to makefile, and created a ray cache