use a custom comparator in `TreeMap` example