Adds test and fix for overflow in capacity calculation in resizing sparse matrices.
Rewrites capacity overflow test case to use 65536 x 65536 square matrix to avoid heap overflow from large dimensions.Reintroduces min variable to
Merge pull request #131 from cskau/master

Adds test and fix for overflow in capacity calculation in resizing sparse matrices.