added docs for 'intersect' and 'in' template functions

Here is the documentation for the 'in' and 'intersect' functions which I contributed earlier.