God bless the ruby enumerators! Lot of inter vector and matrices manipulations done.