memoize to calulate radius function