Update stats.py, test_stats.py

Now uses SymmetricDistanceMatrix.