intersect.{c,h}

The shortest and simplest submission to liboptv of a single function ```intersect.{c,h}``` and the appropriate test ```check_interesect.c```