shrink_mat function

Shrinks a matrix with scores and adds an iteration column.