Find the Distance Value Between Two Arrays