adding some matrix extensions used by etsy

Etsy uses scalding for social network analysis and graph processing. Here are some of the changes we've made to scalding to make this work. Mostly additional functionality.