added getReflection function to raytracing.cpp