Added __reversed__ and __contains__ methods