Data source: http://rosettacode.org/wiki/Closest-pair_problem