Implementing Jenks classification algorithm from Doug Curl