Reverse list (in place)