RUBY: Integer pyramid generator #algorithm