pad function

Pad a matrix object with extra rows/columns of 0s.