Add a function to calculate matrix statistics from Kaldi table