Implement ray intersection for sphere