Reverse list iteratively