Adding standard deviation helper to matrix