Min value fix for summary, also the summary is calculated only once for
the matrix
Merge pull request #82 from lev-kuznetsov/master

Min value fix for summary, also the summary is calculated only once for