simple list reversal problem