Update R-squared, add distance calc functions

Updated (fixed) TopicModelR2(), added a function CalcDist() to
calculate distance between the rows of a matrix in parallel, and added
a function for Hellinger distance.