debug(lp): adding debug facilities to matrices