Rewrites capacity overflow test case to use 65536 x 65536 square matrix to avoid heap overflow from large dimensions.Reintroduces min variable to