ENH: added print matrix, and matrix muliply kernel code