calculate minimal distance of cell center to location (testing)