Rewrite Array#initialize in Ruby.