cleaner code, lower costs, and higher performance

Use R's convention of vectorization.
Use `Map()` to iterate over multiple vectors without replicating them.