+ Changed implementation, compute mean and std over whole matrix