added a useful num-seq function to correspond to R's range function