Added Ray3D class

Added Ray3D class to start with the square collision.