Improves the reverse() function
Improves the reverse_order() function