Computing Coherence Vectors And Correlation Matrices, With Application To Quantum Discord Quantification