Added intersection code.
Merge pull request #1 from gestom/master

Added intersection code.