Changes in HashedDoc* to make them faster

Made some changes to make the HashedDocDotFeatures and the HashedDocConverter faster. Here are some speed comparison between the previous and the proposed implementations on the webspam dataset : https://dl.dropboxusercontent.com/u/23851310/Screenshot_plot.png. Speed was improved, while performance was unaffected.