Update dan

I think this general idea should work as long as we check the arrays being passed in to handle if they are [0, 0, .... 0, 0] which is throwing a divide by zero error in the corrcoef function.