Functions for Implementing the IN Operator