Neat implementation of constructing power set in Ruby