A implementation of group by clause in data base, with the nested hash maps.