fix bug with insertAllRows; add syntax for pure matrix concatenation