fixed a few bugs in prob 9.1 and added assign.m from brml