Improved square matrix detection
Merge pull request #88 from prezjordan/prezjordan-square-matrix

Improved square matrix detection