an R package for the least-squares monte-carlo alogrithm of longstaff and schwartz to valuing american options