Fantastically sped up check for being a symmetric array, that will work for sparse matrices