move all statistics code to VectorStatistics.py