Replace Tuple2 with MapEntry, inheriting by Map.Entry