Performance Improvement

Update compute metrics to only calculate out degree fraction once and
then reuse results.
Performance Improvements #2

Moved to sparse matrix representation for out degree fraction (and
subsequent functions)