added lookup table for distance of R shape object
add distance lookup table for R shape