Finished! Possible problem with add() not returning a new matrix when one is null