MIT assignment 4 Ray casting, fix one bug in Sphere intersection (calculate c)