Add functions for array searching