Update main.cpp

made samplematrix and referencematrix variables global.
Merge pull request #4 from shramdas/patch-2

Update main.cpp