Sphere Ray Intersection Code improvement

Improved code for sphere ray intersection now functions properly on
spheres that are close to ray origin