added makefile to compile and run the matrix