intersect.{c,h}

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

Could we remove this header and document the function instead according to the format in previous submissions?