add row to the top of a matrix