lab7 update

matrix_gen prints binary now