Modernizing and explaining the jenks algorithm