Added Sector3D class and added ray intersection functions to some primatives.