Fixed read_square_matrix test and function.
Wrote add method.