Modified added prototypes to matrix.h