Grid engine implementation of the R language "lapply" function