Finished first simple implementation of ray packets

Both first active ray trick and interval arithmetic for packets have been
implemented

I added a clean class for interval arithmetic at the same time