Added SquaredDistance to utils