Add reverse functions in stack and queue