Implemented plane and ray intersection

Removed unnecessary classes.