Implement __contains__ in JudySL