Recursively reversing list in ruby