matrix_print & bit_getnext