add a matrix entry