Port of MultiPy to Ruby/Chingu