Update Assignment2.rb

Got rid of the sorted set, created a hash set of the categories and occurrences and a function to display and order them