Add trace() method to MatrixLib.
Add trace() for blog users.
Merge pull request #284 from BayesianLogic/Trace

Add trace() method to MatrixLib.