Made custom comparator for treeMap serializable