Removing global variable for using comparator.

By passing hash object parameter to comparator explicitly.
Merge pull request #10 from WoogonShim/feature/top-risk-list

Removing global variable for using comparator.