Project Euler 816 - Shortest distance among points

Official link: https://projecteuler.net/problem=816