Optimized Ray->Sphere intersection