improved implementation of MyREngine.assign(double[][]), it now transfers the matrix as a single vector instead of sending every row separately (took long time)