My solution to a challenge on the kMST problem