Data Structure for keeping frequency count of pairwise data?